package com.railway.switchs.base;

import java.util.List;

/**
 * @ClassName BaseService接口类
 * @Author 魏梓晟
 * @Version 1.0
 **/
public interface BaseService<T,Q> {

    Long add(T record);

    boolean edit(T record);

    boolean delete(Long id);

    T get(Long id);

    Q query(Q query);

    List<T> getList(Q query);
}